package es.iespuertodelacruz.dai.batallanaval.model;

import es.iespuertodelacruz.dai.batallanaval.gui.Position;

public class Cell {

	Position pos;
	Object value;
	
	public Cell(Position pos) {
		this.pos = pos;
	}
	
	public Cell(Position pos, Object value) {
		this(pos);
		setValue(value);
	}
	
	public void setValue(Object value) {
		this.value = value;
	}
	
	public Object getValue() {
		return value;
	}

	@Override
	public String toString() {

		if (value == null)
			return "";
		else
			return value.toString();
	}
	
	
}
